package com.api.orderApi;

import com.last.entity.Order;
import com.last.entity.Result;
import com.last.entity.RoomInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//订单管理相关api
@Component
@FeignClient("homestay-order")
@RequestMapping("/order")
public interface OrderApi {

    // 暴露房间信息的接口
    @RequestMapping("saveOrder")
    Result<Order> saveOrder(Order order);
}
